package com.huawei.appmarket.service.launcher;

import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
import com.huawei.appgallery.foundation.launcher.api.AbsLaunchInterceptor;
import com.huawei.hwid.core.constants.HwAccountConstants;
import o.ContentManager;

public class SystemManagerInterceptor extends AbsLaunchInterceptor {
    public boolean isInterceptor(@NonNull String str) {
        return "com.huawei.systemmanager".equals(str);
    }

    public Intent getIntentByPackage(Context context, String str) {
        Intent intent = new Intent();
        intent.setAction("huawei.intent.action.HSM_STORAGE_CLEANER");
        intent.setFlags(HwAccountConstants.FLAG_TRANSLUCENT_STATUS);
        intent.putExtra("auto_start", true);
        intent.putExtra("package_name", ContentManager.getInstant().getContext().getPackageName());
        return intent;
    }
}
